<template>
    <view v-if="loadType == 0" class="agreeText" v-html="PrivacyPolicyText">

    </view>

    <web-view v-else src="https://api.waimaishi.cn/static/wmsqszexy.html">

    </web-view>
</template>

<script lang="ts" setup>
import userAgreementTetx from '@/Hooks/UserAgreementText/userAgreement';
import {onLoad} from "@dcloudio/uni-app";
import {ref} from "vue";

const {
    PrivacyPolicyText,
    userGetPrivacyPolicy
} = userAgreementTetx()

const loadType = ref(0)
onLoad((options: any) => {
    if (options.type == 1) {
        loadType.value = options.type
    } else {
        userGetPrivacyPolicy()
    }
})
</script>

<style scoped lang="scss">
.agreeText {

    font-size: 25rpx;


}
</style>